/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  z-index: 40;
}

.navbar-container {
  max-width: 80rem;
  margin: 0 2%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(139, 0, 18);
  text-decoration: none;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 0;
}

.navbar-link {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 1.25rem;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
}

.navbar-link:hover {
  color: rgb(139, 0, 18);
}

.navbar-link.active {
  color: rgb(139, 0, 18);
  font-weight: 600;
}

/* 移动菜单按钮 */
.navbar-mobile-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* 移动菜单 */
.navbar-mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 7rem;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  display: none;
  z-index: 50;
}

.navbar-mobile-menu.active {
  display: block;
}

.navbar-mobile-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #2c2c2c;
  text-decoration: none;
}

.navbar-mobile-link:hover {
  background-color: #f3f4f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-email {
    color: #fff;
}

.logout-button {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #d32f2f;
}

/* 按钮样式 */
.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-primary {
    background-color: #4CAF50;
    color: white;
}

.button-primary:hover {
    background-color: #45a049;
}

.button-danger {
    background-color: #f44336;
    color: white;
}

.button-danger:hover {
    background-color: #d32f2f;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* 错误和成功消息样式 */
.message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.message-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-mobile-button {
    display: none;
  }
  
  .navbar-container {
      flex-direction: column;
      gap: 15px;
      align-items:flex-start;
  }
  
  .navbar-menu {
      display: flex;
      flex-direction: column;
      width: 100%;
  }
  
  .navbar-link {
      width: 100%;
      text-align: center;
  }
  
  .user-info {
      flex-direction: column;
      width: 100%;
  }
  
  .logout-button {
      width: 100%;
  }
} 